#!/bin/sh
mvn  clean deploy -U  -Dmaven.test.skip=true
DOCKER_NAME="registry.cn-shenzhen.aliyuncs.com/golden-toad/roc"
DOCKER_VERSION="latest"
docker  build -t $DOCKER_NAME:$DOCKER_VERSION .
docker  push $DOCKER_NAME:$DOCKER_VERSION
{ # try
    docker rmi -f  $(docker images |grep none |awk '{print $3}')
} || { # catch
echo  123
}
#docker-compose down
#docker-compose up -d
